<?php
html::printPath('userSubstitution.form-title', 'userSubstitution.form-desc');
$msg->printMessages();

$su = $this->getSessionData()->getUserSubstitute();
if ($su) {
    echo '<ul class="commandList">';
    echo '<li class="deleteLi">' . html::anchor('admin/userSubstitution/cancelSubstitution', text::get('userSubstitution.cancelSubstitution', $su['first_name'] . ' ' . $su['last_name'])) . '</li>';
    echo '</ul>';
}

$fb = new FormBuilder('userSubstitution', $formData);
$fb->setAction('/admin/userSubstitution/substitute');
$fb->autocompleter('person_id', $personOptions)->mustMatch()->required();
$fb->submitButton('button.substitute');
$fb->write();
